package xyz.suancaiyu;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import xyz.suancaiyu.app.BeanRegisterTest;
import xyz.suancaiyu.app.GetBeanTest;

/**
 * @author puruidong
 * @version 2019/2/17 21:14
 */
public class Main {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("test/lookup/lookupTest.xml");
        GetBeanTest test = (GetBeanTest) applicationContext.getBean("getBeanTest");
        test.showMe();
        BeanRegisterTest brt = (BeanRegisterTest) applicationContext.getBean("beanregistertest");



    }


}
